﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Sowrk03_28.Repository.Migrations
{
    public partial class 供应商 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SupplierInfo",
                columns: table => new
                {
                    SupplierId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    BatchCode = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    RawMaterialImage = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    AccessoryImage = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    AdditiveImage = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    PackingMaterialImage = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SupplierInfo", x => x.SupplierId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SupplierInfo");
        }
    }
}
